from django.urls import path, re_path
from django.views.static import serve
from django.conf import settings
from apps.app_tempapi import views

urlpatterns = [
    path("api/v1/acquisition/", views.acquisition),
    path("api/v1/delete/<nid>/", views.list_delete),
    re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}, name='media'),
    # re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_URL}, name='media'),
    path("api/v1/bill/", views.Bill.as_view()),
    path("api/v1/billdetail/<int:pk>/", views.BillDetail.as_view()),

    path("api/v1/captcha/image/", views.captchaImage.as_view()),
    path("api/v1/captcha/sendSmsCaptcha", views.sendSmsCaptcha.as_view()),
    path("api/v1/cat_path", views.cat_path),
]

